package im.vinci.server.discovery.domain;

import im.vinci.server.utils.JsonUtils;

import java.util.List;

/**
 * Created by mingjie on 16/10/26.
 */
public class Category<T> {
    private long categoryId;
    private String categoryType; // categoryType: category, musiclist, music
    private String categoryName;
    private List<T> data;
    private int pos;

    public long getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(long categoryId) {
        this.categoryId = categoryId;
    }

    public String getCategoryType() {
        return categoryType;
    }

    public void setCategoryType(String categoryType) {
        this.categoryType = categoryType;
    }

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    public List<T> getData() {
        return data;
    }

    public void setData(List<T> data) {
        this.data = data;
    }

    public int getPos() {
        return pos;
    }

    public void setPos(int pos) {
        this.pos = pos;
    }

    @Override
    public String toString() {
        return JsonUtils.encode(this);
    }
}
